<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<KMS.Web.Views.Projects.ProjectViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%= Model.Name %>
    Project
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <caption>
            Resources</caption>
        <% foreach (var resource in Model.Resources)
           { %>
        <tr>
            <td style="width: 300px">
                <a href="#">
                    <%= resource.Title %></a>
            </td>
            <td>
                <a href="#">
                    <%= resource.Author.Username %></a>
            </td>
            <td>
                <%= resource.DateTimeCreated %>
            </td>
        </tr>
        <% } %>
    </table>
    
    <%= Html.ActionLink("Add resource", "AddResource", new { projectId = 5 })%>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <%= Model.Name %>
</asp:Content>
